# coding:utf-8
# @Time      :2022/8/1712:02 AM
# @Author    :peiyu
# @FileName  :log
# @email     :geektime
# @Blog      :https://gitee.com/liupeiyu001/geektime_litemall.git


import logging

log = logging.getLogger("litemall")
log.setLevel(logging.DEBUG)
ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
log.addHandler(ch)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
ch.setFormatter(formatter)
